<% if @current_user.administrator && !@new_events.empty? %>
  <h2>New events waiting for approval:</h2>
  <%= render :partial => "index_table", :locals => {:events => @new_events, :show_approve => true} %>
<%end%>

<% if @current_user.administrator && !@edited_events.empty? %>
  <h2>Edited events waiting for approval:</h2>
  <%= render :partial => "index_table", :locals => {:events => @edited_events, :show_approve => true} %>
<%end%>

<h2>This week:</h2>
<%= render :partial => "week_table", :locals => {:events => @events_this_week} %>

<h2>List of all events:</h2>
<%= render :partial => "index_table", :locals => {:events => @events} %>
<%= will_paginate @events %>

<%= link_to 'New Event', new_event_path %>
